package com.linjacy.httpproject.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.linjacy.httpproject.exception.SystemErrorException;
import com.linjacy.httpproject.entity.User;
import com.linjacy.httpproject.request.RegisterUserRequest;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface UserService extends IService<User> {
    User getUserById(String id) throws SystemErrorException;

    void registerUser(RegisterUserRequest user);

    String loginUser(RegisterUserRequest user) throws SystemErrorException;

    List<User> getUserByRule();

    Map<String, User> getUserList();

    void getExportList(HttpServletResponse response);

    void importUserList(MultipartFile file);

    String json2Sql(JSONObject json) throws SystemErrorException;
}
